home *** CD-ROM | disk | FTP | other *** search
/ IRIX Patches 1995 June / SGI IRIX Patches 1995 Jun.iso / 5.3_patches / patchSG0000499 / patchSG0000499.idb / usr / include / abi / X11 / extensions / XTest.h.z / XTest.h
Encoding:
C/C++ Source or Header  |  1995-06-12  |  3.7 KB  |  184 lines

  1. /* $XConsortium: XTest.h,v 1.8 93/02/26 12:08:20 rws Exp $ */
  2. /*
  3.  
  4. Copyright 1992 by the Massachusetts Institute of Technology
  5.  
  6. Permission to use, copy, modify, distribute, and sell this software and its
  7. documentation for any purpose is hereby granted without fee, provided that
  8. the above copyright notice appear in all copies and that both that
  9. copyright notice and this permission notice appear in supporting
  10. documentation, and that the name of M.I.T. not be used in advertising or
  11. publicity pertaining to distribution of the software without specific,
  12. written prior permission.  M.I.T. makes no representations about the
  13. suitability of this software for any purpose.  It is provided "as is"
  14. without express or implied warranty.
  15.  
  16. */
  17.  
  18. #ifndef _XTEST_H_
  19. #define _XTEST_H_
  20.  
  21. #include <X11/Xfuncproto.h>
  22.  
  23. #define X_XTestGetVersion    0
  24. #define X_XTestCompareCursor    1
  25. #define X_XTestFakeInput    2
  26. #define X_XTestGrabControl    3
  27.  
  28. #define XTestNumberEvents    0
  29.  
  30. #define XTestNumberErrors    0
  31.  
  32. #define XTestMajorVersion    2
  33. #define XTestMinorVersion    2
  34.  
  35. #define XTestExtensionName    "XTEST"
  36.  
  37. #ifndef _XTEST_SERVER_
  38.  
  39. #include <X11/extensions/XInput.h>
  40.  
  41. _XFUNCPROTOBEGIN
  42.  
  43. Bool XTestQueryExtension(
  44. #if NeedFunctionPrototypes
  45.     Display*        /* dpy */,
  46.     int*        /* event_basep */,
  47.     int*        /* error_basep */,
  48.     int*        /* majorp */,
  49.     int*        /* minorp */
  50. #endif
  51. );
  52.  
  53. Bool XTestCompareCursorWithWindow(
  54. #if NeedFunctionPrototypes
  55.     Display*        /* dpy */,
  56.     Window        /* window */,
  57.     Cursor        /* cursor */
  58. #endif
  59. );
  60.  
  61. Bool XTestCompareCurrentCursorWithWindow(
  62. #if NeedFunctionPrototypes
  63.     Display*        /* dpy */,
  64.     Window        /* window */
  65. #endif
  66. );
  67.  
  68. extern XTestFakeKeyEvent(
  69. #if NeedFunctionPrototypes
  70.     Display*        /* dpy */,
  71.     unsigned int    /* keycode */,
  72.     Bool        /* is_press */,
  73.     unsigned long    /* delay */
  74. #endif
  75. );
  76.  
  77. extern XTestFakeButtonEvent(
  78. #if NeedFunctionPrototypes
  79.     Display*        /* dpy */,
  80.     unsigned int    /* button */,
  81.     Bool        /* is_press */,
  82.     unsigned long    /* delay */
  83. #endif
  84. );
  85.  
  86. extern XTestFakeMotionEvent(
  87. #if NeedFunctionPrototypes
  88.     Display*        /* dpy */,
  89.     int            /* screen */,
  90.     int            /* x */,
  91.     int            /* y */,
  92.     unsigned long    /* delay */
  93. #endif
  94. );
  95.  
  96. extern XTestFakeRelativeMotionEvent(
  97. #if NeedFunctionPrototypes
  98.     Display*        /* dpy */,
  99.     int            /* x */,
  100.     int            /* y */,
  101.     unsigned long    /* delay */
  102. #endif
  103. );
  104.  
  105. extern XTestFakeDeviceKeyEvent(
  106. #if NeedFunctionPrototypes
  107.     Display*        /* dpy */,
  108.     XDevice*        /* dev */,
  109.     unsigned int    /* keycode */,
  110.     Bool        /* is_press */,
  111.     int*        /* axes */,
  112.     int            /* n_axes */,
  113.     unsigned long    /* delay */
  114. #endif
  115. );
  116.  
  117. extern XTestFakeDeviceButtonEvent(
  118. #if NeedFunctionPrototypes
  119.     Display*        /* dpy */,
  120.     XDevice*        /* dev */,
  121.     unsigned int    /* button */,
  122.     Bool        /* is_press */,
  123.     int*        /* axes */,
  124.     int            /* n_axes */,
  125.     unsigned long    /* delay */
  126. #endif
  127. );
  128.  
  129. extern XTestFakeProximityEvent(
  130. #if NeedFunctionPrototypes
  131.     Display*        /* dpy */,
  132.     XDevice*        /* dev */,
  133.     Bool        /* in_prox */,
  134.     int*        /* axes */,
  135.     int            /* n_axes */,
  136.     unsigned long    /* delay */
  137. #endif
  138. );
  139.  
  140. extern XTestFakeDeviceMotionEvent(
  141. #if NeedFunctionPrototypes
  142.     Display*        /* dpy */,
  143.     XDevice*        /* dev */,
  144.     Bool        /* is_relative */,
  145.     int            /* first_axis */,
  146.     int*        /* axes */,
  147.     int            /* n_axes */,
  148.     unsigned long    /* delay */
  149. #endif
  150. );
  151.  
  152. extern XTestGrabControl(
  153. #if NeedFunctionPrototypes
  154.     Display*        /* dpy */,
  155.     Bool        /* impervious */
  156. #endif
  157. );
  158.  
  159. void XTestSetGContextOfGC(
  160. #if NeedFunctionPrototypes
  161.     GC            /* gc */,
  162.     GContext        /* gid */
  163. #endif
  164. );
  165.  
  166. void XTestSetVisualIDOfVisual(
  167. #if NeedFunctionPrototypes
  168.     Visual*        /* visual */,
  169.     VisualID        /* visualid */
  170. #endif
  171. );
  172.  
  173. Status XTestDiscard(
  174. #if NeedFunctionPrototypes
  175.     Display*        /* dpy */
  176. #endif
  177. );
  178.  
  179. _XFUNCPROTOEND
  180.  
  181. #endif /* _XTEST_SERVER_ */
  182.  
  183. #endif
  184.